CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(include)
include_directories(${THIRD_PARTY}/live/BasicUsageEnvironment/include)
include_directories(${THIRD_PARTY}/live/UsageEnvironment/include)
include_directories(${THIRD_PARTY}/live/groupsock/include)
include_directories(${THIRD_PARTY}/live/liveMedia/include)

link_directories(${COMN_DIR}/lib)
link_directories(${THIRD_PARTY}/live/lib)

aux_source_directory(. SOURCES)

add_library(RtspCaster SHARED ${SOURCES})

target_link_libraries(RtspCaster
	${LIB_PLATFORM}
	debug liveMediad optimized liveMedia
	debug comnd optimized comn
	)

set_target_properties(RtspCaster PROPERTIES LINK_INTERFACE_LIBRARIES "")
set_target_properties(RtspCaster PROPERTIES INTERFACE_LINK_LIBRARIES "")

install(TARGETS RtspCaster DESTINATION lib)